package sms.ui.kecheng;
;import sms.dao.KeChengDao;
import sms.entry.KeCheng;
import sms.ui.KeChenGuanLi;

import java.util.Scanner;

public class KeChengTianJia {
    private static  KeChengDao keChengDao = new KeChengDao();
    public static void show() {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入要添加的课程：");
        String km = sc.next();
        System.out.println("请对所添加的课程描述：");
        String info = sc.next();
        //调用课程的添加方法保存
        KeCheng keCheng = new KeCheng(km, info);
        keChengDao.save(keCheng);
        KeChenGuanLi.show();


    }
}
